package com.yami.shop.sys.dto;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;
import java.util.Date;
import java.util.List;

/**
 * 系统用户
 */
@Data
public class UserAndShopDto {
    private static final long serialVersionUID = 1L;

    /**
     * 用户ID
     *
     */
    @ApiModelProperty(value = "用户ID", required = true)
    private Long userId;

    /**
     * 用户名
     */
    @ApiModelProperty(value = "用户名", required = true)
    private String username;

    /**
     * 密码
     */
    @ApiModelProperty(value = "密码", required = true)
    private String password;

    /**
     * 邮箱
     */
    @ApiModelProperty(value = "邮箱", required = true)
    private String email;

    /**
     * 手机号
     */
    @ApiModelProperty(value = "手机号", required = true)
    private String mobile;

    /**
     * 状态  0：禁用   1：正常
     */
    @ApiModelProperty(value = "状态", required = true)
    private Integer status;

    /**
     * 用户所在店铺id
     */
    @ApiModelProperty(value = "用户所在店铺id", required = true)
    private Long shopId;

    /**
     * 代理商id
     */
    @ApiModelProperty(value = "代理商id", required = true)
    private Long agentId;

    /**
     * 角色ID列表
     */
    @ApiModelProperty(value = "角色ID列表", required = true)
    private List<Long> roleIdList;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间", required = true)
    private Date createTime;

    /**
     * 店铺审核状态  0：审核通过   1：审核中    2：审核失败
     */
    @ApiModelProperty(value = "店铺审核状态", required = true)
    private Integer state;

    /**
     * 每天营业时间段(可修改)
     */
    @ApiModelProperty(value = "每天营业时间段", required = true)
    private String openTime;

    /**
     * 店铺状态(-1:未开通 0: 停业中 1:营业中)，可修改
     */
    @ApiModelProperty(value = "店铺状态", required = true)
    private Integer shopStatus;
}
